//
//  borgword_define.h
//  BORGWORD
//
//  Created by 张国庆 on 15/11/23.
//  Copyright © 2015年 zgq. All rights reserved.
//

#ifndef borgword_define_h
#define borgword_define_h

#define UISCREEN_BOUNDS_SIZE      [UIScreen mainScreen].bounds.size // 屏幕的物理尺寸
#define UISCREEN_BOUNDS_HEIGHT    [UIScreen mainScreen].bounds.size.height
#define UISCREEN_BOUNDS_WIDTH     [UIScreen mainScreen].bounds.size.width
#define PERSON_WIDTH UISCREEN_BOUNDS_WIDTH/320
#define PERCENPAGE_NUM UISCREEN_BOUNDS_HEIGHT/480
#define _WEAK_SELF __unsafe_unretained __typeof(self)weakSelf = self;


#define  MQT_POART   10047

#define navigationColor [UIColor colorWithRed:199/255.0 green:37/255.0 blue:55/255.0 alpha:1.0]
#define COLOR_RGB(R,G,B) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:1.0]

//本地userdefault
#define MyIP   [[NSUserDefaults standardUserDefaults]objectForKey:@"ip"]
#define userId [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"]
#define isAutomaticLogin [[NSUserDefaults standardUserDefaults]objectForKey:@"isAutomaticLogin"]
#define myDealerCode [[NSUserDefaults standardUserDefaults]objectForKey:@"ENTITY_CODE"]


#pragma mark -action
#pragma mark zgqaction
#define action_dealerInfo @"QUERY_ALL_ASC_INFO"//ip设置
#define action_Login @"LOGIN_ASC"//登录
#define action_AppointList @"QUERY_BOOKING_INFORMATION_FOR_CALENDER"//预约列表
#define action_AppointDetail @"QUERY_BOOKING_ORDER_DETAIL_FOR_PAD"//预约详情
#define action_AppointCancel @"CANCEL_BOOKING_ORDER"//取消预约
#define action_PreviewList @"QUERY_SAMEDAY_PRECHECK_VEHICLE"//预检单查询
#define action_previewDetail @"QUERY_PRECHECK_ORDER_DETAIL"//预检单详情

#define HexRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define SafeRelease(object) if(object != nil) {[object release];object = nil;}


#define  Web_Url   @"http://210.13.111.26:10064/INFO_DMS_WEB/AjaxChannel?action="








#endif /* borgword_define_h */
